<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">      

	<h:head>
	<link rel="shortcut icon" type="image/x-icon" href=""></link>
	<title>Login</title>
	 </h:head>
	
	<h:body> 
	<div id="content" title="LoginBean ">
	<p:dialog header="Login" id="dialog" minWidth="400"
	width="400" height="180" modal="true" closable="false" position="center"
	showEffect="slide" draggable="true" resizable="false" visible="true">
	<h:form id="loginForm">          
            <p:growl id="msg" showDetail="true" life="3000" />
                <h:panelGrid id="loginPanel" columns="2">
                    <h:outputText value="Usuário" />
                    <p:inputText id="nome" value="#{loginBean.nome}" ></p:inputText>
                    <p:spacer></p:spacer>
                    <p:message for="nome" ></p:message>
                    <h:outputText value="Senha" />
                    <p:password id="password" value="#{loginBean.password}"  feedback="false"></p:password>
                    <p:spacer></p:spacer>
                    <p:message for="password"></p:message>
                    <p:spacer></p:spacer>
                    <p:panelGrid>
                    <p:commandButton action="#{loginBean.loginProject}" value="Login" update="loginForm" ajax="true"></p:commandButton>
                    <p:commandButton value="Cancelar" ajax="false" action="Index2.xhtml"  ></p:commandButton>
                   
                    </p:panelGrid>
                </h:panelGrid>
        </h:form>
	</p:dialog>
	</div>
	</h:body>
	
</html>